package com.gxa.insurance.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Customer
 * @Description 客户实体类
 * @Author ds
 * @Date 2022/6/6 15:45
 * @Version 1.0
 */
@ApiModel
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer implements Serializable {
    @ApiModelProperty(name = "id",value = "id")
    private Integer id;

    @ApiModelProperty(name = "contacts",value = "联系人",required = true)
    private String contacts;
    @ApiModelProperty(name = "phone",value = "手机号",required = true)
    private String phone;
    @ApiModelProperty(name = "idCard",value = "身份证",required = true)
    private String idCard;
    @ApiModelProperty(name = "customer",value = "被保险人",required = true)
    private String customer;
    @ApiModelProperty(name = "insuranceName",value = "保险公司",required = true)
    private String insuranceName;
    @ApiModelProperty(name = "carId",value = "车牌号",required = true)
    private String carId;
    @ApiModelProperty(name = "model",value = "车型",required = true)
    private String model;
    @ApiModelProperty(name = "engine",value = "发动机号",required = true)
    private String engine;
    @ApiModelProperty(name = "insureTime",value = "投保日期",required = true)
    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date insureTime;
    @ApiModelProperty(name = "note",value = "备注",required = false)
    private String note;

    @JsonFormat(pattern = "YYYY-MM-dd",timezone ="GMT+8")
    private Date loginTime;

    private String email;

    private String points;


}
